import './assets/main.css'

import { createApp } from 'vue'
import App from './App.vue'
const app = createApp(App)


// 1.引入element-plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
app.use(ElementPlus)
//2.引入vue-router
import router from './router'
app.use(router)

// 3.引入图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
// 遍历并注册所有图标组件
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.mount('#app')
